import os
import sys
from PySide6 import QtGui, QtCore, QtQml


if __name__ == "__main__":
    QtCore.QCoreApplication.setApplicationName("Hello World")
    QtCore.QCoreApplication.setOrganizationName("QtProject")

    app = QtGui.QGuiApplication(sys.argv)
    engine = QtQml.QQmlApplicationEngine()
    engine.load(os.fspath("./views/hello.qml"))

    if not engine.rootObjects():
        sys.exit(-1)

    sys.exit(app.exec())
